package org.bsplus.service;

import java.util.List;
import javax.annotation.Resource;
import org.bsplus.dao.ProjectDAO;
import org.bsplus.domain.Project;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class ProjectService
{
    private ProjectDAO projectDAO;

    public List<Project> getAllProjects()
    {
        return projectDAO.getAllProjects();
    }

    @Resource
    @Required
    public void setProjectDAO(ProjectDAO projectDAO)
    {
        this.projectDAO = projectDAO;
    }
}
